import { Service } from "cl-admin";
import BaseService from "@/service/base";
import dayjs from "dayjs";


@Service("clueMoney")
class ClueMoney extends BaseService {

	// 派单-粉丝派单收益明细
	customer_clue({ time, ...args }) {
		let params = {
			...args,
			btime: time?.[0] || '',
			etime: time?.[1] || ''
		};
		return this.$get("/customer_clue", { params });
	}

	// 派单收益-概览
	money_panel(params) {
		return this.$get("/money_panel", { params });
	}

	// 派单收益-每日收益
	money_daily({ time, ...args }) {
		let params = {
			...args,
			btime: time?.[0] || '',
			etime: time?.[1] || ''
		};
		return this.$get("/money_daily", { params });
	}

	// 派单-粉丝列表
	customer_list({ time, ...args }) {
		let params = {
			...args,
			btime: time?.[0] || '',
			etime: time?.[1] || ''
		};
		return this.$get("/customer_list", { params });
	}

	// 派单-海报图
	create_bind_img(params) {
		return this.$post("/create_bind_img", params);
	}

	// 派单分销身份认证
	auth(params) {
		return this.$post("/auth", params);
	}
}
export default ClueMoney;
